home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / texsis / VMS / TEXSIS05.COM < prev    next >
Text File  |  1992-08-02  |  87KB  |  1,977 lines

  1. $! === THIS IS AN ARCHIVE FILE -- DELETE EVERYTHING ABOVE THIS LINE ===
  2. $! === THEN EXECUTE THIS FILE WITH "@TEXSIS05.COM" ===
  3. $! Contents:
  4. $!    Elsevier.txs
  5. $!    TXSeqns.doc
  6. $!    TXSfmts.tex
  7. $!    TXSintro.doc
  8. $!    TXSletr.doc
  9. $!    TXSmemo.tex
  10. $! =========== Elsevier.txs ============
  11. $ copy sys$input Elsevier.txs
  12. % file: Elsevier.txs                              TeXsis version 2.14  
  13. % $Revision: 15.0 $  :  $Date: 91/07/09 19:24:09 $  :  $Author: myers $
  14. %======================================================================*
  15. %  Elsevier -- TeXsis style file for North-Holland Physics Publishers
  16. %
  17. %       \NorthHolland           North Holland proceedings format,
  18. %                               single column, left justified titles
  19. %       \NorthHollandTwo        North Holland double column proceedings
  20. %                               format, left justified titles
  21. %======================================================================*
  22. \ATunlock
  23. \emsg{\@comment\ Elsevier: North-Holland/Elsevier style}%
  24.  
  25. %--------------------------------------------------*
  26. %       \NorthHolland -- North-Holland/Elsevier Proceedings Layout.
  27. % Single column with left justified title, author, and abstract, small
  28. % \parindent, intented subsections.
  29. %       Note that \author treats the first line as the author's name and
  30. % the following lines as addresses. You can can extend the author line
  31. % to more than one line by ending the lines with \
  32.  
  33. \def\NorthHolland{%  North-Holland/Elsevier Proceedings
  34.    \auxswitchtrue                       % save tags and labels in .aux file
  35.    \refswitchtrue                       % save references in .ref file
  36.    \texsis                              % initialize
  37.    \def\Tbf{\twelvepoint\rm}%           % Title typestyle    
  38.    \def\tbf{\twelvepoint\rm}%           % section head typestyle
  39.    \twelvepoint%                        % 12 pt type
  40.    \parindent=0.65cm%                   % small indent
  41.    \hsize=16.8cm%                       % width
  42.    \vsize=25.0cm%                       % height
  43.    \nopagenumbers%                      % don't print page numbers
  44.    \showsectIDtrue%                     % show section numbers
  45.    \parskip=0pt plus0pt minus0pt\relax% % no stretch!
  46.    \advance\voffset by-0.5in\relax%     % fit page
  47.    \raggedbottom%                       % since no stretch
  48.    \let\@@@disclaimer=\disclaimer%      % save it
  49.    \def\disclaimer{%                    % in 12 pt
  50.       \let\tenrm=\twelverm%             %
  51.       \@@@disclaimer}%                  %
  52. %
  53.    \def\titlepage{%                     % for \NorthHolland
  54.       \bgroup                           % begin title page
  55.       \let\endmode=\relax               % define end
  56.       \pageno=1%                        % start on 1
  57.       \vbox{\vskip1.2cm}}%              % whitespace at top
  58.    \def\endtitlepage{%                  % for \NorthHolland
  59.       \endmode                          % end titlepage
  60.       \egroup%                          % end group
  61.       \doublespaced}%                   % double space below
  62. %
  63.    \def\title{%                         % for \NorthHolland
  64.       \endmode                          % end previous field
  65.       \bgroup\narrower%                 % margins
  66.       \let\endmode=\endtitle            % set up ending
  67.       \mark{Title Page\NX\else Title Page}% mark page so no \HeadLine
  68.       \flushleft%                       % left justified with line breaks
  69.       \hyphenpenalty=10000%             % no hyphens
  70.       \exhyphenpenalty=10000%           % no hyphens
  71.       \singlespaced}%                   % single spaced
  72.    \def\endtitle{%                      % for \NorthHolland
  73.       \endflushleft%                    % end flush left and group
  74.       \vskip\normalbaselineskip%        % skip a line
  75.       \egroup}%                         % end title group
  76. %
  77.    \def\author{%                        % for \NorthHolland
  78.       \endmode                          % end previous field
  79.       \bgroup\narrower%                 % margins
  80.       \let\endmode=\endauthor           % set up ending
  81.       \flushleft%                       % flush left
  82.       \@NHgetauthor}%                   % get author
  83.    \def\endauthor{%                     % for \NorthHolland
  84.       \vskip\normalbaselineskip%        % skip line - another in \abstract
  85.       \endflushleft%                    % end flush left
  86.       \egroup}%                         % end author group
  87. %
  88.    \def\abstract{%                      % for \NorthHolland
  89.       \endmode                          % end previous field
  90.       \vskip\normalbaselineskip         % skip second line
  91.       \bgroup\narrower%                 % margins
  92.       \let\endmode=\endabstract         % set up ending
  93.       \noindent}%                       % no indent
  94.    \def\endabstract{%                   % for \NorthHolland
  95.       \vskip0pt%                        % force vertical mode
  96.       \egroup}%                         % end abstract group
  97.    \let\section=\@NHsection%            % for \NorthHolland
  98.    \let\subsection\@NHsubsection%       % for \NorthHolland
  99. }%                                      % end \NorthHolland
  100.  
  101. %       \@NHgetauthor is like \getauthor but left justifies and skips 
  102. % 1 line after author's name.
  103. {\obeylines
  104.  \gdef\@NHgetauthor#1
  105.     #2
  106.     {#1\vskip0pt\noindent{#2}%          % author line
  107.     \vskip1\normalbaselineskip}%        % blank line
  108. }
  109.  
  110. %       \section for \NorthHolland
  111.  
  112. \def\@NHsection#1{%                             % N.Holland section
  113.    \everysection%                               % user customization
  114.    \vskip 2\normalbaselineskip\goodbreak%       % make some space
  115.    \global\advance\sectionnum by \@ne           % increment section counter
  116.    \global\subsectionnum=\z@%                   % reset subsection counter
  117.    \edef\ttt{\@chaptID\the\sectionnum}%         % For use by \label
  118.    \s@ction%                                     % checkenv, etc..
  119.    \vbox{%                                      % heading in \vbox
  120.       \begingroup\raggedright                   % group for \tbf
  121.       \ifshowsectID                             % show section number?
  122.          \global\edef\@sectID{\the\sectionnum.}% yes: define section ID
  123.          \r@set%                                %   and reset counters
  124.          \setbox0=\hbox{\noindent\@chaptID\@sectID\space}% find width
  125.          \hangindent=\wd0\hangafter=1%          % hanging indent after 1st line
  126.          \noindent{\tbf{\@chaptID\@sectID\space}}%   and print sect ID
  127.       \else\gdef\@sectID{}%                     % no: section ID is null
  128.          \noindent                              %  just print section title
  129.       \fi                                       % end \ifshowsectID
  130.       {\tbf{#1}}\relax                          % Print title ragged in \tbf
  131.       \endgroup                                 % end \tbf
  132.       \nobreak\medskip}%                        % skip down some
  133.    \begingroup                                  % group for \contents, etc.
  134.       \def\label##1{}\def\goodbreak{}%          % disable \label & \goodbreak
  135.       \def\n{\ }\def\nl{\ }%                    % turn off \n
  136.       \def\mib{}%                               % turn off \mib
  137.       \emsg{Section \ttt.\space #1}%            % announce in .LIS and
  138.       \ifnum\chapternum=0%                      % no chapter number, so
  139.          \global\edef\HeadText{{\tenit #1}}\fi  % make running head the title
  140.       \addTOC{\ttt.}{\ #1}{1}%                  % add to table of contents
  141.       \def\sectiontitle{#1}%                    % for \aftersection
  142.    \endgroup%                                   % end \contents group
  143.    \nobreak%                                    % no break
  144.    \aftersection\nobreak}%                      % user can customize
  145.  
  146. %       \subsection for \NorthHolland, with indented nonbold titles and
  147. % fixes for standard version.
  148.  
  149. \def\@NHsubsection#1{%                          % N.Holland sub-section
  150.    \everysubsection%                            % user customization
  151.    \vskip\baselineskip\goodbreak%               % break 
  152.    \checkquote%                                 % make sure no open quotes
  153.    \global\advance\subsectionnum by\@ne%        % increment counter
  154.    \edef\ttt{\@chaptID\@sectID\the\subsectionnum.}% for \label
  155.    \vbox{%                                      % heading in \vbox
  156.       \begingroup\raggedright%                  % Print title ragged, indent
  157.          \ifshowsectID%                         % showing section numbers?
  158.          \setbox0=\hbox{\noindent\ttt\space}%   % find width
  159.          \hangindent=\wd0\hangafter=1\relax%    % hanging indent after 1st line
  160.          \ttt\space%                            % show subsection number
  161.          \fi #1\relax%                          % print the title
  162.       \endgroup%                                % end \bf
  163.       \nobreak\medskip%                         % skip down some
  164.       \nobreak\vskip-\parskip}%                 % cancel first \parskip
  165.    \begingroup%                                 % group for \contents, etc.
  166.       \def\label##1{}\def\goodbreak{}%          % disable \label & \goodbreak
  167.       \def\n{\ }\def\nl{\ }%                    % turn off \n
  168.       \def\mib{}%                               % turn off \mib
  169.       \emsg{\ttt\space #1}%                     % announce in .LIS and
  170.       \addTOC{\ttt}{\ #1}{2}%                   % add to table of contents
  171.       \def\subsectiontitle{#1}%                 % for \aftersection to use
  172.    \endgroup%                                   % end \contents group
  173.    \nobreak%                                    % no page break
  174.    \aftersubsection}%                           % room to customize
  175.  
  176.  
  177. %--------------------------------------------------*
  178. %       \NorthHollandTwo -   North-Holland/Elsevier proceedings layout in
  179. % double column format with titles left justified, eleven point type, etc.,
  180. % for camera-ready copy.  Constructed following directions in ``Instructions 
  181. % for the Preparation and Typing of Camera Ready Contributions'' by Mary 
  182. % Carpenter, Elsevier Publishers.
  183.  
  184. \def\NorthHollandTwo{% North-Holland/Elsevier proceedings 2-column layout
  185.    \auxswitchtrue                       % save tags and labels in .aux file
  186.    \refswitchtrue                       % save references in .ref file
  187.    \texsis                              % initialize
  188.    \def\Tbf{\elevenpoint\bf}%           % Title typestyle    
  189.    \def\tbf{\elevenpoint\it}%           % section head typestyle
  190.    \setdoublecolumns{21.3cm}{27.1cm}{10.0cm}%
  191.    \parindent=0.6cm                     %
  192.    \advance\voffset by -2.2cm \relax    % as close to the top as possible
  193.    \advance\hoffset by -2.3cm \relax    % as close to the left as possible
  194. %
  195.    \emsg{ }
  196.    \emsg{The \NX\NorthHollandTwo document layout you have selected is}%
  197.    \emsg{too large to fit on one 8.5 x 11.0 page.  You should either}%
  198.    \emsg{print the output on an oversized printer or offset the output}%
  199.    \emsg{horizontally to get one column at a time. }%
  200.    \emsg{Please enter the horizontal OFFSET TO THE LEFT (with units!):}%
  201.    \read-1 to \tmp                      % read from terminal (use UNITS!)
  202.    \if\tmp\par \relax\else              % if blank line, ignore
  203.       \advance \hoffset by -\tmp\relax  % else move \hoffset left
  204.    \fi
  205. %
  206.    \def\titlepage{%                             % for \NorthHollandTwo
  207.       \pageno=1                                 %
  208.       \hbox{\ }%                                % anchor to top of page
  209.       \bgroup                                   %
  210.       \let\endmode=\relax                       % \endmode will end a field
  211.       \vskip 0.3cm                              % whitespace on title page
  212.       \narrower\parindent=0pt}%                 %
  213.    \def\endtitlepage{%                          % for \NorthHollandTwo
  214.       \endmode                                  % end any open field
  215.       \smallskip                                %
  216.       \egroup}%                                 %
  217. %
  218.    \def\title{%                                 % for \NorthHollandTwo
  219.       \endmode                                  % end previous field, if any
  220.       \mark{Title Page\NX\else Title Page}%     % so \HeadLine doesn't print
  221.       \bgroup                                   % begin title group
  222.       \flushleft                                % left justified 
  223.       \let\endmode=\endtitle                    %
  224.       \Tbf\widenspacing}%                       % \Tbf is Title boldface
  225.    \def\endtitle{%                              % for \NorthHollandTwo
  226.       \endflushleft                             %
  227.       \egroup%                                  % end title group
  228.       \bigskip}%                                %
  229. %
  230.    \let\getauthor=\LATauthor                    % see definition below
  231.    \def\endauthor{\par\egroup\medskip}%         %
  232.    \def\and{\smallskip{and}\smallskip}%         %
  233. %
  234.    \def\abstract{%                              % for \NorthHollandTwo
  235.       \endmode                                  % end any open field
  236.       \bigskip                                  %
  237.       \bgroup                                   %
  238.       \let\endmode=\endabstract                 %
  239.       \singlespaced\noindent}%                  %
  240.    \def\endabstract{%                           % for \NorthHollandTwo
  241.       \medskip\egroup\bigskip}%                 % 
  242. %
  243.    \elevenpoint                                 % eleven point type size
  244.    \parindent=0.6cm                             % paragraph indent
  245.    \autoparens                                  % auto-sizing of parens
  246.    \quoteon                                     % automatic begin/end quotes
  247.    \nopagenumbers                               % don't print page numbers
  248.    \singlespaced\whitespaced                    % 1.25 percent spacing
  249. }                                               % end of \NorthHollandTwo
  250.  
  251. % \NorthHollandTwo replacement for \getauthor left justifies
  252.  
  253. {\obeylines
  254.  \gdef\LATauthor#1
  255.   #2
  256.   {#1\bigskip\noindent{\bf #2}\medskip}%
  257. }
  258.  
  259. \ATlock
  260.  
  261. %>>> EOF Elsevier.txs <<<
  262. $! =========== TXSeqns.doc ============
  263. $ copy sys$input TXSeqns.doc
  264. % file: TXSeqns.doc                             TeXsis version 2.15
  265. % $Revision: 15.5 $  :  $Date: 92/06/12 21:48:28 $  :  $Author: paige $
  266. %======================================================================*
  267. % TeXsis Manual - EQUATIONS             : This file is a part of TeXsis
  268. % (C) Copyright 1989, 1992 by Eric Myers and Frank E. Paige
  269. %======================================================================*
  270. \ifx\undefined\bs \texsis\input TXSdocM.doc\draft\fi
  271.  
  272.  
  273. \section{Equations              \label{sect.eqns}}
  274.  
  275. Plain \TeX\ was designed to make it easy to typeset equations
  276. and mathematical formulae.  \TeXsis\ provides additional features
  277. that make the job even easier.  Among these are the automatic
  278. numbering of equations, automatic sizing of parentheses, and a
  279. collection of special symbols that are used by physicists.
  280.  
  281. \subsection{Equation Numbering          \label{sect.eqno}}
  282.  
  283. In Plain \TeX\ equation numbers are added to displayed
  284. equations with the \cs{eqno} command, as described in Chapter~19 of
  285. \TeXbook.  For example, typing
  286. \index{equations!numbering}
  287. \TeXexample
  288.  $$ E=mc^2.  \eqno (47) $$
  289. |endTeXexample
  290. will produce:
  291. \offparens
  292.  $$
  293. E = mc^2   \eqno (47)
  294.  $$
  295. in the output.  With \TeXsis\ the procedure for getting
  296. automatically numbered equations is similar, except that you use
  297. \CS{EQN} instead of \cs{eqno}, and what follows this (up to the
  298. ``|$$|'') is not used as the number of the equation, but as an
  299. internal {\it label}\, for the equation.  For example, if you had
  300. already used |\EQN| to create three numbered equations, then
  301. typing
  302. \eqnum=3
  303. \TeXexample
  304.  $$ \vec F = -{G_N Mm \over r^2} \hat r
  305.    \EQN Newton $$
  306. |endTeXexample
  307. would produce
  308.  $$
  309. \vec F = -{G_N Mm \over r^2} \hat r 
  310.    \EQN Newton
  311.  $$
  312. \TeXsis\ automatically assigns the next available equation number to
  313. the equation and prints this number on the right, in parentheses.
  314. The equations that follow the one above would be numbered 4.5,
  315. 4.6, and so on.
  316.  
  317.    The purpose of the "label" after the |\EQN| is to let you
  318. refer to the equation in the text without knowing the equation
  319. number that has been assigned to it.  For example, to refer to
  320. \Eq{Newton} above, which has the label ``Newton'', you might type
  321. \index{equations!labeling}
  322. \TeXexample
  323. The dependence of the force on the inverse square of the distance 
  324. can be seen in \Eq{Newton}.
  325. |endTeXexample
  326. This would be printed as:  
  327. \example 
  328. The dependence of the force on the inverse square of the distance
  329. can be seen in \Eq{Newton}.
  330. \endexample   
  331. The control sequence \CS{Eq}\arg{label} gives the same result
  332. as typing "|Eq.~(|$nn$|)|", where $nn$ is the appropriate
  333. equation number for the given label.  Two other similar control
  334. words allow you to refer to a range of equations, or to refer to
  335. an equation simply by number, without the preceding "|Eq.~|."
  336. Typing \CS{Eqs}\arg{label} produces "Eqs.~($nn$)", while
  337. \CS{Ep}\arg{label} gives just the equation number associated
  338. with the label, enclosed in parentheses. Thus typing
  339. \TeXexample
  340. The class of metrics defined by \Eqs{cond-1} through 
  341. \Ep{cond-5} can all be shown to satisfy inequality
  342. \Ep{triangle}, as well as the condition in \Eq{Killing}.
  343. |endTeXexample
  344. would produce in the output something like:
  345. \example
  346. The class of metrics defined by Eqs.~(14) through 
  347. (19) can all be shown to satisfy inequality
  348. (23), as well as the condition in Eq.~(7).
  349. \endexample
  350.   
  351.    Almost any sequence of characters can be used as a "label" for
  352. an equation.  This includes letters, numbers, and punctuation
  353. marks, but it is best to avoid \TeX's special characters, such as
  354. |\|, |&|, |}|, |{|, |$|, |_|, and |^|.  Spaces may be included
  355. but will be ignored, and there {\it is} a difference between
  356. uppercase and lowercase letters.  Also, the semicolon (|;|) is
  357. reserved for a special purpose, as described below.
  358.  
  359.    You may want to give equations "names," as in the example
  360. called "Newton" above, or you can give the equations labels that
  361. are numbers.  This is the best thing to do if the equations in
  362. the original manuscript already have numbers, but if you do this
  363. then you should be sure to remember that the internal label and
  364. the number which is printed (the ``external'' number) are not
  365. necessarily the same.  If the equation {\it labeled} ``15'' is
  366. the fifteenth equation in the document then it will also be
  367. equation number 15, but if you move the equation around in the
  368. file so that it is the sixth equation in the document it will be
  369. printed as equation 6, even though it has the label ``15''.
  370.  
  371.    If you have a heavily edited document and the arrangement of
  372. the numbers and labels gets confusing there is a useful aid to
  373. help straighten things out.  If you say
  374. \example
  375. \CS{eqnotracetrue}
  376. \endexample                     
  377. then the equation numbers will be printed as usual, but with the label
  378. appearing next to it in the right margin in square brackets.
  379. For example, the equation
  380. \TeXexample   
  381.  $$         
  382. (i\gamma^\mu \partial_\mu - m)\psi (x) = 0
  383.    \EQN Dirac $$
  384. |endTeXexample
  385. when printed with |\eqnotracetrue| would appear as 
  386. \begingroup\eqnotracetrue
  387.  $$       
  388. (i\gamma^\mu \partial_\mu - m)\psi (x) = 0
  389. \EQN Dirac$$
  390. \endgroup
  391. Since the label appears in the margin the spacing of your document
  392. remains exactly the same.
  393. Obviously you would not print the final copy of the document this way,
  394. but it can be very useful for editing.  You can turn off this
  395. equation tracing feature anytime by saying \cs{eqnotracefalse}.  If you
  396. say \cs{draft} at the beginning of your document then the equation
  397. tracing will be turned on automatically (along with some other useful
  398. features).
  399. \index{equations!labeling}
  400.  
  401. \bigskip
  402.   
  403.         Sometimes when several equations are closely related you will
  404. want to give the whole set the same equation number.  To distinguish
  405. separate formulae in such a group you then generally add a letter to
  406. the number.  You might, for example, have the equation
  407. \index{equations!multiple}
  408.  $$
  409. J^2\ket{j,m} = j(j+1) \ket{j,m} \EQN eigen;a 
  410.  $$
  411. and then a short while later you might have the related equation
  412.  $$
  413. J_z\ket{j,m} = m \ket{j,m} \EQN eigen;b
  414.  $$
  415. These may be referred to together as \Eqs{eigen} or may be
  416. referred to separately as \Eqs{eigen;a} and \Ep{eigen;b}. To get
  417. an equation number with a letter in it you still use \CS{EQN}, but
  418. you add the appropriate letter to the end of the label, separated
  419. {from} the label by a semicolon.  The equations above were created
  420. by typing:
  421. \TeXexample
  422.  $$
  423. J^2\ket{j,m} = j(j+1) \ket{j,m} \EQN eigen;a
  424.  $$
  425. |endTeXexample
  426. and        
  427. \TeXexample
  428.  $$
  429. J_z\ket{j,m} = m \ket{j,m} \EQN eigen;b
  430.  $$
  431. |endTeXexample
  432. The semicolon is not printed --- it is just used to separate the
  433. letter from the label.  If the letter is ``a'' then the next
  434. available equation number is used, as usual, but if the letter is
  435. anything else then the equation number is not incremented and
  436. instead the number from the previous equation is used.  You can
  437. use any sequence of letters you like, although it is usually best
  438. to use ``a,b,c$\ldots$'' for consecutive equations.
  439.                                                       
  440.    To refer to equations that have both numbers and letters you
  441. can either use the letter to pick out a specific equation, or
  442. simply leave out the letter and use the label to refer to the
  443. whole lot all at once.  You can use either \CS{Eq} or \CS{Eqs} to do
  444. this.  For example, the sentence after \Eq{eigen;b} above was
  445. created by typing
  446. \TeXexample                                           
  447. These may be referred to together as \Eqs{eigen}
  448. or may be referred to separately as 
  449. \Eqs{eigen;a} and \Ep{eigen;b}.
  450. |endTeXexample    
  451. \index{equations!multiple}
  452.  
  453. \bigskip
  454.                   
  455.    You will eventually encounter an equation that is so long that
  456. it has to be broken up into several lines.  Or you will want to
  457. print several equations together, lined up by their "$=$" signs.
  458. In Plain \TeX\ you would use |\eqalign| to display these kinds of
  459. equations, or |\eqalignno| to display them with equation numbers.
  460. To get automatically assigned equation numbers in aligned
  461. equations with \TeXsis\ you should use \CS{EQNalign} in place of
  462. \cs{eqalign} or \cs{eqalignno}.  As usual the alignment of the
  463. equations is controlled by |&| and |\cr|.  An equation number is
  464. assigned to a particular line by putting |\EQN| followed by a
  465. label on that line, before the |\cr|.  The label is everything
  466. {from} the |\EQN| up to the |\cr|.  For example,
  467. \index{equations!alignment}
  468. \TeXexample
  469.  $$
  470. \EQNalign{
  471. {dp \over dt} &= - {\partial H \over \partial q} 
  472. \EQN Hamilton-1 \cr
  473. {dq \over dt} &= {\partial H \over \partial p} 
  474. \EQN Hamilton-2 \cr}
  475.  $$
  476. |endTeXexample
  477. produces the two aligned and numbered equations
  478.  $$
  479. \EQNalign{
  480. {dp \over dt} &= - {\partial H \over \partial q} \EQN Hamilton-1 \cr
  481. {dq \over dt} &=   {\partial H \over \partial p} \EQN Hamilton-2 \cr}
  482.  $$            
  483.  
  484.    \cs{EQNalign} can be used both for typing multi-part equations or for
  485. splitting an equation which is too long to fit on a single line.
  486. However, when splitting a single long equation into several lines it may
  487. actually be better to use |$$\eqalign{|\meta{formula}|}| followed by
  488. |\EQN| \meta{label}|$$|.  For example, in
  489.  $$
  490. \eqalign{
  491. {\cal L}_{NC} &= {-g \over 2\cos\theta_W} \sum_i 
  492.    \bar\psi_i [ (t_{3,i}-2Q_i\sin^2\theta_W) \gamma_\mu
  493.    - t_{3,i}\gamma_\mu\gamma_5 ]\psi_i Z^\mu \cr
  494. &\quad - e \sum_i Q_i \bar\psi_i \gamma_\mu \psi_i A^\mu \cr}
  495. \EQN{NC}
  496.  $$
  497. the equation number is centered between the two lines of the equation.
  498. This equation was produced using \cs{eqalign} by typing:
  499. \TeXexample
  500.  $$
  501. \eqalign{
  502. {\cal L}_{NC} &= {-g \over 2\cos\theta_W} \sum_i 
  503.    \bar\psi_i [ (t_{3,i}-2Q_i\sin^2\theta_W) \gamma_\mu
  504.    - t_{3,i}\gamma_\mu\gamma_5 ]\psi_i Z^\mu \cr
  505. &\quad - e \sum_i Q_i \bar\psi_i \gamma_\mu \psi_i A^\mu \cr}
  506. \EQN{NC}
  507.  $$
  508. |endTeXexample
  509.              
  510.    Closely related equations can be displayed together with the
  511. same equation number by following the label with a semicolon and
  512. a letter, as already described above.  For example, the set of
  513. equations,
  514.  $$
  515. \EQNalign{   
  516. \nabla \cdot \vec D    &=  4 \pi \rho \EQN EM;a       \cr
  517. \nabla \times \vec E   &= 
  518.         - {1 \over c} {\partial \vec B \over \partial t}
  519.         \EQN EM;b                                     \cr
  520. \nabla \cdot \vec B    &=  0 \EQN EM;c                \cr
  521. \nabla \times \vec H   &=  {4 \pi \over c} \vec J 
  522.         + {1 \over c} {\partial \vec D \over \partial t} 
  523.         \EQN EM;d                                     \cr}
  524.  $$                                                    
  525. is produced by typing:
  526. \TeXexample
  527.  $$
  528. \EQNalign{
  529. \nabla \cdot \vec D    &=  4 \pi \rho \EQN EM;a       \cr
  530. \nabla \times \vec E   &= 
  531.         - {1 \over c} {\partial \vec B \over \partial t}
  532.         \EQN EM;b                                     \cr
  533. \nabla \cdot \vec B    &=  0 \EQN EM;c                \cr
  534. \nabla \times \vec H   &=  {4 \pi \over c} \vec J 
  535.         + {1 \over c} {\partial \vec D \over \partial t} 
  536.         \EQN EM;d                                     \cr}
  537.  $$                                            
  538. |endTeXexample                                
  539. Note that the alignment of the equations is controlled by |&| and
  540. |\cr|, not by the arrangement used when the equation was typed
  541. into the manuscript file.  Still, it is recommended that you
  542. arrange long sets of equations like these in some sort of clear
  543. pattern when you type them.  This will both reduce errors when
  544. the equation is typed and make it easier for you to read the file
  545. when you are looking at it later.  Remember, \TeX\ ignores all
  546. spaces and tabs when it reads material for equations or displayed
  547. equations.
  548. \index{equations!alignment}
  549.  
  550.    \CS{EQNdoublealign} is similar to \cs{EQNalign} but makes
  551. equations with two alignment tabs. For example,
  552. \TeXexample
  553.  $$
  554. \EQNdoublealign{
  555. \sigma_i^2 &= 1 & \EQN Pauli;a \cr
  556. \sigma_i\sigma_j + \sigma_j\sigma_i &= 0 \qquad & (i \ne j)
  557.   \EQN Pauli;b \cr
  558. \sigma_i\sigma_j &= i\sigma_k \qquad & (i,j,k\ {\rm cyclic})
  559.    \EQN Pauli;c \cr}
  560.  $$
  561. |endTeXexample
  562. produces
  563.  $$
  564. \EQNdoublealign{
  565. \sigma_i^2 &= 1 & \EQN Pauli;a \cr                           
  566. \sigma_i\sigma_j + \sigma_j\sigma_i &= 0 \qquad & (i \ne j)
  567.   \EQN Pauli;b \cr
  568. \sigma_i\sigma_j &= i\sigma_k \qquad & (i,j,k\ {\rm cyclic})
  569.    \EQN Pauli;c \cr}
  570.  $$
  571. with both the equal signs and the parentheses aligned. The second
  572. |&| is required in the first line, because without it the |\EQN| would
  573. have aligned the equation number with the parentheses.
  574.  
  575.    Plain \TeX\ also lets you display formulae on several lines
  576. without any alignment by using \cs{displaylines}.  With \TeXsis\ you
  577. can use the similar control sequence \CS{EQNdisplaylines} to get an
  578. automatically assigned equation number for any line in such a
  579. display.  The pattern is the same as in |\displaylines|, but you
  580. simply insert \cs{EQN}\meta{label} in front of the \cs{cr} on the
  581. line you want numbered.  \CS{EQNdisplaylines} produces less space
  582. between the equations than would result from typing them
  583. separately, and generally looks better.
  584.  
  585.    All of the equation alignment macros are special cases of the plain
  586. \TeX\ macro \cs{halign}. Therefore, if necessary, the vertical spacing can
  587. be adjusted by inserting
  588. \example
  589. \cs{noalign}\cs{vskip}\meta{dimen}
  590. \endexample
  591. where \meta{dimen} can be either a positive or a negative dimension.
  592. \bigskip
  593.  
  594.    In a long document there are several different ways to number
  595. the equations.  You could just start at ``1'' and count up for
  596. each new equation.  Sometimes though, it is better to number the
  597. equations consecutively within each chapter or section of a
  598. document.  In \TeXsis\ the default form for an equation number is
  599.  $cc.ss.nn$ where $cc$ stands for the chapter number, $ss$ is the
  600. section number, and $nn$ is the equation number within that
  601. section.  Whenever you move to a new section or chapter (using
  602. \cs{section} or \cs{chapter}, as described in
  603. Section~\use{sect.sects}) the number $ss$ or $cc$ is incremented
  604. by one and the number $nn$ is reset to one.  If you are not using
  605. chapter divisions in your document then the chapter number $cc$
  606. is not made a part of the equation number, and the number $nn$ is
  607. reset only at the beginning of a section.  If you are not using
  608. section divisions in your document then the section number $ss$
  609. is not made a part of the equation number, and the number $nn$ is
  610. reset to one only at the beginning of a chapter.  If you use
  611. neither chapter nor section divisions in your document then
  612. neither the chapter number $cc$ nor the section number $ss$ will
  613. be made a part of the equation number, and the equations will
  614. simply be numbered consecutively, 1, 2, 3\dots.
  615. \index{equations!numbering}
  616.  
  617.    Although the system just described for forming equation
  618. numbers gives a result that is usually what you will want for
  619. your equation numbering you can change the method by setting
  620. either of two switches.  If you say |\showchaptIDfalse| then the
  621. chapter number $cc$ will not be made a part of the equation
  622. number even though you may be using chapter level divisions in
  623. your document.  Similarly, saying |\showsectIDfalse| prevents the
  624. section number $ss$ from being used in the equation number.  The
  625. opposites of these two switches are \cs{showchaptIDtrue} and
  626. \cs{showsectIDtrue}.  The equation number $nn$ is reset to one only
  627. when a section or chapter number that is supposed to be visible
  628. is incremented, as you might expect.
  629.  
  630. %>>> EOF TXSeqns.doc <<<
  631. $! =========== TXSfmts.tex ============
  632. $ copy sys$input TXSfmts.tex
  633. %% file: TXSfmts.tex                             TeXsis version 2.15
  634. %  $Revision: 15.6 $  :  $Date: 92/06/30 11:10:05 $  :  $Author: myers $
  635. %======================================================================*
  636. % DOCUMENT FORMATS              (C) copyright 1986, 1991 by Eric Myers.
  637. %
  638. %       Several standard document formats are defined in TeXsis. All of
  639. % these set up the appropriate dimensions, title page macros, etc., and
  640. % call \texsis:
  641. %
  642. %       \preprint               Preprint format. Makes a standard title
  643. %                               page from \title, \author, etc. and puts the
  644. %                               manuscript on the following pages.
  645. %
  646. %       \Manuscript             Like \preprint, but printed with 
  647. %                               \TrueDoubleSpacing for submission to 
  648. %                               journals like Physical Review
  649. %
  650. %       \paper                  Like \preprint but puts \title, \author,
  651. %                               etc. material at top of first page
  652. %                               instead of on a separate title page.
  653. %
  654. %       \book                   For books, with chapters and sections,
  655. %                               and odd/even page numbering
  656. %
  657. %       \slides                 Slides/transparencies format, in 24 pt type,
  658. %                               special formatting.
  659. %
  660. %       \letter                 Standard business letter; see TXSletr.tex
  661. %
  662. %       \memo                   Standard memo; see TXSmemo.tex.
  663. %
  664. %       \referee                Referee reports; similar to \memo
  665. %
  666. %       \twinprint              Preprint in twin page format, with
  667. %                               title page in full size landscape.
  668. %
  669. %       \twinformat             Twin page formatting for other styles.
  670. %
  671. %       More specialized document layouts are available in ``style'' 
  672. %  files, which are only loaded when they are called for.  This is 
  673. %  accomplished with the \autoload macro described below.  It's possible 
  674. %  (and easy) to add new style files for any desired document layout.
  675. %
  676. %       The specialized document layouts which are currently loaded 
  677. %  from style files [named in brackets] are:
  678. %
  679. %       \nuclproc               The ``NUCLPROC'' style for Nuclear
  680. %                               Physics Proceedings. [nuclproc.txs]
  681. %
  682. %       \NorthHolland           North Holland proceedings format,
  683. %                               single column, left justified titles.
  684. %                               [Elsevier.txs]
  685. %
  686. %       \NorthHollandTwo        North Holland double column proceedings
  687. %                               format, left justified titles. [Elsevier.txs]
  688. %
  689. %       \WorldScientific        World Scientific proceedings format.
  690. %                               [WorldSci.txs]
  691. %
  692. %       \IEEEproceedings        Conference paper in double column IEEE
  693. %                               format. [IEEE.txs]
  694. %
  695. %       \IEEEreduced            Same as \IEEEproceedings but reduced
  696. %                               by 75% to fit on 8.5 x 11 paper. [IEEE.txs]
  697. %
  698. %       \AIPproceedings         Conference paper in the American Institute
  699. %                               of Physics (AIP) format. [AIP.txs]
  700. %
  701. %======================================================================*
  702. \message{Layout macros.}
  703. \catcode`@=11
  704.      
  705. %--------------------------------------------------*
  706. % Paper Layout: This prints the \titlepage material at the top of
  707. % the first page, not on a separate page.
  708.      
  709. \def\paper{%                            % Paper:
  710.    \auxswitchtrue                       % save tags and labels in .aux file
  711.    \refswitchtrue                       % save references in .ref file
  712.    \texsis                              % Initialize
  713.    \def\titlepage{%                     % \paper title page
  714.       \bgroup                           % so changes don't leak out
  715.       \let\endmode=\relax               % \endmode will end a field
  716.       \pageno=1}%                       % title page is page 1 by default
  717.    \def\endtitlepage{%                  % \paper end title page
  718.       \endmode                          % end any open field
  719.       \goodbreak\bigskip                % no new page, but maybe break here
  720.       \egroup}%                         % everything back the way it was
  721.    \def\Tbf{\fourteenpoint\bf}%         % 14pt bold title
  722.    \def\tbf{\twelvepoint\bf}%           % 12pt bold section head
  723.    \autoparens                          % auto-sizing of parens
  724.    \quoteon                             % automatic begin/end quotes
  725.    }
  726.      
  727. %--------------------------------------------------*
  728. % Preprint Layout: This prints the \titlepage material on a separate
  729. % page with a \banner at the top.
  730.      
  731. \def\preprint{% Document layout for Preprints
  732.    \auxswitchtrue                       % save tags and labels in .aux file
  733.    \refswitchtrue                       % save references in .ref file
  734.    \texsis                              % Initialize TeXsis
  735.    \def\titlepage{%                     % \preprint title page
  736.       \bgroup                           % so changes don't leak out
  737.       \pageno=1                         % title page is page 1 by default
  738.       \let\endmode=\relax               % \endmode will end a field
  739.       \banner}%                         % prints the banner at top of page 1
  740.    \def\endtitlepage{%                  % \preprint end title page
  741.       \endmode                          % end any open field
  742.       \vfil\eject                       % new page
  743.       \egroup}%                         % everything back the way it was
  744.    \def\Tbf{\fourteenpoint\bf}%         % 14pt bold titles
  745.    \def\tbf{\twelvepoint\bf}%           % 12pt bold section heads
  746.    \autoparens                          % auto-sizing of parens
  747.    \quoteon                             % automatic begin/end quotes
  748.    }
  749.      
  750. %--------------------------------------------------*
  751. % \Manuscript is a layout similar to \preprint, but printed
  752. % in \TrueDoubleSpacing.  Use this for a manuscript to be submitted
  753. % to a journal such as Physical Review.
  754.  
  755. \def\Manuscript{% layout for manuscripts to be submitted to journals
  756.    \preprint
  757.    \FiguresLast
  758.    \TrueDoubleSpacing}
  759.  
  760. %--------------------------------------------------*
  761. % \book format is similar to \thesis but without the special 
  762. % formatting.  Use for books, long review articles, etc.
  763.      
  764. \def\book{% document layout for a book or similar document
  765.    \ContentsSwitchtrue                  % contents page ON
  766.    \refswitchtrue                       % save references
  767.    \auxswitchtrue                       % .AUX file for forward references
  768.    \texsis                              % initialize TeXsis
  769.    \RunningHeadstrue                    % running headlines
  770.    \bookpagenumbers                     % page numbers for book binding
  771.    \def\titlepage{%                     % \book title page
  772.       \bgroup                           % any changes local
  773.       \pageno=-1                        % start on page i
  774.       \let\endmode=\relax               % \endmode will end a field
  775.       \def\FootText{\relax}}%           %  no number on title page
  776.    \def\endtitlepage{%                  % end title page for \book
  777.       \endmode                          % end any open field
  778.       \vfil\eject                       % end title page
  779.       \egroup%                          % close group from \titlepage
  780.       \pageno=1}%                       % 
  781.    \def\abstract{%                      % abstract for \book
  782.       \endmode                          % end previous field
  783.       \bigskip\bigskip\medskip          % skip down some
  784.       \bgroup\singlespaced              % abstract has same spacing
  785.          \let\endmode=\endabstract      % to end \abstract
  786.          \narrower\narrower}%           %
  787.    \def\endabstract{%                   % end abstract for \book
  788.       \medskip\egroup\bigskip}%         %
  789.    \def\FootText{--\ \tenrm\folio\ --}% % for 1st page of chapter
  790.    \def\Tbf{\sixteenpoint\bf}%          % Chapter Titles in 16pt bold
  791.    \def\tbf{\fourteenpoint\bf}%         % Section titles in 12pt bold
  792.    \twelvepoint                         % 12pt type for most of doc
  793.    \doublespaced                        % double spacing
  794.    \autoparens                          % auto-sizing of parens
  795.    \quoteon                             % auto quote matching
  796.    }                                    %
  797.      
  798. %--------------------------------------------------*
  799. %  \thesis is loaded from a style file now because it will be
  800. %  different at different installations.
  801.  
  802. \autoload\thesis{thesis.txs}
  803.  
  804.  
  805. %--------------------------------------------------*
  806. % \letter is a letter format for typing letters, following the syntax
  807. % in Appendix F of the TeXbook.  See TXSletr.tex for details.
  808.      
  809. \def\Letter{%   document format for letters
  810.    \ContentsSwitchfalse                         % no table of contents
  811.    \refswitchfalse                              % no reference list
  812.    \auxswitchfalse                              % no forward references
  813.    \texsis                                      % initialize
  814.    \singlespaced                                % single space default
  815.    \LetterFormat}                               % Setup using \LetterFormat
  816.  
  817. \def\letter{\Letter}                            % synonym
  818.      
  819. %--------------------------------------------------*
  820. % \memo Format for memoranda, as defined in TXSmemo.tex
  821.  
  822. \def\Memo{%  document format for memos
  823.    \ContentsSwitchfalse                         % no table of contents
  824.    \refswitchfalse                              % no reference list
  825.    \auxswitchfalse                              % no forward references
  826.    \texsis                                      % initialize
  827.    \singlespaced                                % single space default
  828.    \MemoFormat}                                 % Setup using \MemoFormat
  829.  
  830. \def\memo{\Memo}                                % synonym
  831.  
  832. %--------------------------------------------------*
  833. % \Referee format for Referee Reports, as defined in TXSmemo.tex
  834.  
  835. \def\Referee{% document format for referee reports
  836.    \ContentsSwitchfalse                         % no table of contents
  837.    \auxswitchfalse                              % no need for an .aux file
  838.    \refswitchfalse                              % no reference list
  839.    \texsis                                      % initialize
  840.    \RefReptFormat}                              % Setup using \MemoFormat
  841.  
  842. \def\referee{\Referee}                          % synonym
  843.      
  844. %--------------------------------------------------*
  845. %       Landscape Layout: for printing ``sideways'' on the laser printer
  846. %
  847. % \Landscape sets up the page size for sideways (``landscape mode'')
  848. % printing, and calls \LandscapeSpecial to signal this to the printer.
  849. % What signal is given to the printer driver (with \special) depends
  850. % on which filter or driver you are using.  You may have to change
  851. % the definition of \LandscapeSpecial to suit your installation.
  852.  
  853. \def\Landscape{% set page size for printing ``sideways''
  854.    \texsis              % 12pt, double spaced, etc
  855.    \hsize=9in           % wide in the side
  856.    \vsize=6.5in         % short and stocky
  857.    \voffset=.5in        % and a little space from the ``margin''
  858.    \nopagenumbers       % default is no page numbering
  859.    \LandscapeSpecial           % actually turns on landscape mode   
  860. }
  861.  
  862. \def\landscape{\Landscape}                      % synonym
  863.      
  864.  
  865. %% \LandscapeSpecial turns on landscape mode on the laser printer.
  866. %% How this is done is very site dependent, so you may need to
  867. %% re-define this in TXSsite.tex
  868. %%
  869. %% 1) This is how dv2ips does it, and you need to have landscape.ps
  870. %% accesable to the filter program
  871.  
  872. \def\LandscapeSpecial{\special{psfile=landscape.ps}}
  873.  
  874. %% % 2) This is how dvips (Rokicki's version 5.484) does it:
  875. %% 
  876. %% \def\LandscapeSpecial{\special{papersize=11in,8.5in}}
  877. %% 
  878. %--------------------------------------------------*
  879. %   \slides makes slides or transparencies in default 24pt type with
  880. % sensible defaults. It also defines \bl for a blank line and
  881. % \np for new page.
  882. %
  883. \def\slides{%                                   % standard stuff except 12pt:
  884.    \quoteon                                     % automatic quote balancing on
  885.    \autoparens                                  % automatic paren balancing on
  886.    \ATlock                                      % now @ is no longer a letter
  887.    \pageno=1                                    % start on page one
  888.    \twentyfourpoint                             % 24 point type
  889.    \doublespaced                                % double spaced
  890.    \raggedright\tolerance=2000                  % very ragged right 
  891.    \hyphenpenalty=500                           % hyphens are bad
  892.    \raggedbottom                                % ragged bottom
  893.    \nopagenumbers                               % no numbers
  894.    \hoffset=-.25in \hsize=7.0in                 % to fit 8.5in x 10.5in
  895.    \voffset=-.25in \vsize=9.0in                 % to fit 8.5in x 10.5in
  896.    \parindent=30pt                              % for big type
  897.    \def\bl{\vskip\normalbaselineskip}%          % blank line
  898.    \def\np{\vfill\eject}%                       % new page
  899.    \def\nospace{\nulldelimiterspace=0pt%        % autoscale...
  900.       \mathsurround=0pt}%                       %
  901.    \def\big##1{{\hbox{$\left##1%                % ...\big
  902.       \vbox to2ex{}\right.\nospace$}}}%         %
  903.    \def\Big##1{{\hbox{$\left##1%                % ...\Big
  904.       \vbox to2.5ex{}\right.\nospace$}}}%       %
  905.    \def\bigg##1{{\hbox{$\left##1%               % ...\bigg
  906.        \vbox to3ex{}\right.\nospace$}}}%        %
  907.    \def\Bigg##1{{\hbox{$\left##1%               % ...\Bigg
  908.       \vbox to4ex{}\right.\nospace$}}}%
  909.   }
  910.  
  911. %-----------------------------------------------------------------------
  912. %      \twinprint sets up a twin column preprint, with the first page
  913. % full with in \twelvepoint and the rest in \tenpoint \twinout format.
  914.  
  915. \let\pr@pr@nt=\preprint                        % save \preprint
  916.  
  917. \def\twinprint{%                               % \twinout preprint
  918.    \hsize=\normvsize\vsize=\normhsize          % set sizes
  919.    \pr@pr@nt                                   % usual \preprint
  920.    \let\t@tl@=\title                           % save it
  921.    \def\title{\vskip-1.5in\t@tl@}%             % reduce space
  922.    \let\endt@tlep@ge=\endtitlepage             % save it
  923.    \def\endtitlepage{\endt@tlep@ge             % usual \endtitlepage
  924.    \twinformat}%                               % twin column default
  925. }
  926.  
  927. %      \twinformat sets up the standard defaults for \twinout, with
  928. % 10pt fonts and no headline offset.
  929.  
  930. \def\twinformat{%                              % 2 pages/page format
  931.    \tenpoint\doublespaced                      % ten point size
  932.    \def\Tbf{\twelvebf}\def\tbf{\tenbf}%        % title fonts
  933.    \headlineoffset=0pt                         % no extra offset
  934.    \twinout                                    % \twinout format
  935.    }
  936.  
  937. % >>> EOF TXSfmts.tex <<<
  938. $! =========== TXSintro.doc ============
  939. $ copy sys$input TXSintro.doc
  940. %% file: TXSintro.doc                            TeXsis version 2.15
  941. %  $Revision: 15.11 $  :  $Date: 92/07/31 16:37:22 $  :  $Author: myers $
  942. %=======================================================================*
  943. % TeXsis Manual - INTRODUCTION          : This file is a part of TeXsis
  944. % (C) Copyright 1989, 1992 by Eric Myers and Frank E. Paige
  945. %======================================================================*
  946. \ifx\undefined\bs \texsis\input TXSdocM.doc\draft\fi
  947.  
  948.  
  949. \section{Overview               \label{sect.intro}}
  950.  
  951.    \TeX\ is a computer typesetting language developed by Donald Knuth
  952. \index{Knuth, Donald} and described in \TeXbook.\cite{Knuth} Its
  953. greatest strength is its ability to typeset technical material and
  954. mathematical equations using a syntax that is based on content;
  955. \TeX\ automatically handles the actual placement of the characters
  956. on the page.  It also has a powerful macro capability, giving it
  957. great flexibility. This has been exploited by many authors to
  958. write "formats," or macro packages, providing features not
  959. contained in the basic language, which is sometimes referred to
  960. as ``Plain'' \TeX.\index{plain TeX@{plain \TeX}}
  961.  
  962.    \TeXsis\ is a \TeX\ macro package which is designed primarily
  963. for typesetting physics papers and preprints, conference
  964. proceedings, and related documents. It has been developed from
  965. the \idx{TechRpt} format described by W.~Groppe\ref{Groppe} and from
  966. \TeXsis\ 1.01, the \TeX\ thesis format by E.~Myers.\cite{Myers}
  967. \index{texsis@{\TeXsis}}                       
  968. The general scope of \TeXsis\ is similar to the SLAC format
  969. \idx{PHYZZX},\ref{PHYZZX} but it offers some significant advantages,
  970. such as a more powerful and flexible way of referring to
  971. references, equations, and other numbered objects. It is
  972. functionally a superset of Plain \TeX, so that everything
  973. described in \TeXbook\ will work in \TeXsis, although a few of
  974. the Plain \TeX\ macros have actually been modified.
  975.  
  976.    We should mention at the outset that \LaTeX, \index{latex@{\LaTeX}}
  977. another popular \TeX-based macro package, is not compatible with Plain
  978. \TeX, and as a consequence it is not possible to use \TeXsis\ with
  979. \LaTeX\ or vice versa.
  980.  
  981.    This document explains how to use \TeXsis. Since it is a user's
  982. guide, it makes no attempt to describe how the various macros work; for
  983. this information one should consult the source code, which is
  984. extensively commented. However, we do assume that the reader is already
  985. familiar with \idx{Plain} \TeX.  New users should therefore first see
  986. either \TeXbook, especially chapters~1-10 and 16-19, or \booktitle{A
  987. Gentle Introduction to \TeX} by Michael~Doob,\cite{Doob} or the manual
  988. by Spivak\ref{Spivak} which accompanies PC\TeX\ (which is an
  989. implementation of \TeX\ for the IBM~PC).  The sections of the present
  990. document cover the following topics:\tag{pg.itemize}{\folio}
  991. \itemize \clump
  992. \itm \SEC{start} --
  993. Getting Started.  How to run and initialize \TeXsis, and the
  994. "master file" concept.
  995.  
  996. \itm \SEC{fonts} -- 
  997. Selecting sizes and fonts of type, choosing single, double, or
  998. triple spacing, and automatically handling quotation marks.
  999.       
  1000. \itm \SEC{eqns} -- 
  1001. Automatic numbering of equations, automatic sizing of parentheses
  1002. and brackets, and special symbols for physics equations.
  1003.  
  1004. \itm \SEC{refs} -- 
  1005. Defining new references, for which numbers are assigned automatically,
  1006. citing references already so defined, and making a list of references.
  1007.  
  1008. \itm \SEC{sects} -- 
  1009. Dividing a document into chapters, sections, subsections, and
  1010. appendices, and producing a table of contents.
  1011.  
  1012. \itm \SEC{fmts} -- 
  1013. Using pre-defined layouts for documents such as preprints,
  1014. conference proceedings and theses. Creating a title page.
  1015.  
  1016. \itm \SEC{envmt} -- 
  1017. Displaying text in special ways using "environments," including those
  1018. for centered lines, lists of things, listings of computer programs, and
  1019. \TeX\ examples.
  1020.  
  1021. \itm \SEC{figures} -- 
  1022. Producing automatically numbered tables and figures and producing
  1023. ruled tables.
  1024.  
  1025. \itm \SEC{letr} --
  1026. Typing letters, form letters, memos and referee reports.
  1027.  
  1028. \itm \SEC{dcol} --
  1029. Producing double column output.
  1030.  
  1031. \itm \SEC{labels} --
  1032. Labeling things like section numbers, figures, items in an
  1033. outline, or page numbers, and referring to them in other parts of the
  1034. document. 
  1035.  
  1036. \itm \SEC{misc} --            
  1037. Miscellaneous macros for ignoring text and doing various other useful
  1038. things, and a checkpoint/restart feature for printing very long documents.
  1039.  
  1040. \enditemize                             
  1041.  
  1042.   Appendix~A explains how to install \TeXsis\ on a VAX/VMS system, on an
  1043. IBM~PC, and on the Berkeley Unix operating system.  It also explains how
  1044. to customize \TeXsis\ for your own installation.  Appendix~B lists the
  1045. fonts usually available with \TeXsis. Appendix~C lists changes that have
  1046. been made to \TeXsis\ in recent revisions.
  1047.  
  1048.   Two examples of \TeXsis\ documents are included in the standard
  1049. distribution.  The first is a short (3 pages) example of a physics paper
  1050. typeset with \TeXsis, which is contained in the file |Example.tex|.  The
  1051. second is the manual itself, which was also created with \TeXsis.  If
  1052. you would like to look at the files used to create the Manual the master
  1053. file is called |TXSdoc.doc|, and the various sections of the document
  1054. are in files with names of the form |TXS|$xxxx$|.doc|.  For those who
  1055. are comfortable programming in \TeX\ it is possible to extract specific
  1056. macros from the \TeXsis\ source code or to modify or even rewrite these
  1057. macros.  The source code is contained in files with names of the form
  1058. |TXS|$xxxx$|.tex|.  We have tried wherever possible to include
  1059. illuminating comments in the source code.
  1060.  
  1061.  
  1062. %==================================================*
  1063.  
  1064. \subsection{Some Philosophy               \label{sect.philosophy}}
  1065.  
  1066.   In designing the \TeXsis\ macros we have tried to follow some basic
  1067. guidelines which we feel make \TeXsis\ a more useful tool.  It may help
  1068. you while learning \TeXsis\ to know what these guidelines are:
  1069. \index{philosophy}
  1070.  
  1071. \item{1)}
  1072. Most importantly, \TeXsis\ will always be a superset of Plain \TeX, so
  1073. that anything you can't do in \TeXsis\ (and even those that you can do)
  1074. can be done with Plain \TeX\ instead. \index{compatibility!with@{with
  1075. plain \TeX}} This also means that \TeXsis\ should be compatible with
  1076. Plain \TeX\ macro packages, such as |epsf.tex| and |index.tex|, or
  1077. other specialized macro sets.\Footnote\dag{We cannot completely
  1078. guarantee this because other macro packages might define macros with
  1079. the same names as used by \TeXsis, although we have taken several
  1080. steps to prevent this kind of conflict.} Even if some of the Plain
  1081. macros are actually redefine in \TeXsis\ they are required to still
  1082. behave as described in \TeXbook.
  1083.  
  1084. \item{2)}
  1085. There are two different ways in which arguments may be passed to macros,
  1086. depending on the length of the argument.  Short arguments are simply
  1087. enclosed in curly brackets, as in:\index{macros!arguments}
  1088. \TeXexample
  1089. \section{The nonlinear $\sigma$-model}
  1090. |endTeXexample
  1091. \item{}
  1092. Longer amounts of text (many lines) and text which is considered to be
  1093. enclosed in  special environments is begun with something like |\thing|
  1094. and terminated  with |\endthing|.  For example,
  1095. \TeXexample
  1096. \abstract
  1097. A mechanism for total confinement of quarks, similar to that of
  1098. Schwinger, is defined which requires the existence of Abelian or
  1099. non-Abelian gauge fields.  It is shown how to quantize ...
  1100. \endabstract
  1101. |endTeXexample
  1102. \item{}
  1103. This is similar to the |\begin{thing}| \ttdots |\end{thing}|
  1104. construction in \LaTeX\ \index{latex@{\LaTeX}} but is slightly easier
  1105. to type and, more important, is compatible with Plain \TeX.  The reason for
  1106. preferring this way of delimiting text or arguments is that for very
  1107. long pieces of material it's much easier to look for |\thing| and
  1108. |\endthing| than it is to count curly brackets.  
  1109. \Ignore                    % this is now true, but we don't want to advertise it!
  1110. If you really want
  1111. to type |\begin{thing}| and |\end{thing}| you can do so --- \TeXsis\
  1112. will understand it to mean |\thing| and |\endthing|.
  1113. \endIgnore
  1114.  
  1115. \item{3)}
  1116. When a \TeXsis\ macro is similar to a Plain \TeX\ macro it should, when
  1117. possible, have a similar name and syntax. 
  1118. \index{macros!syntax} 
  1119. Thus \cs{Footnote} in \TeXsis\ is used exactly like \cs{footnote} in
  1120. Plain \TeX, and in ruled tables ``|&|'' and ``|\cr|'' can be used
  1121. exactly as in an |\halign| (the exception being that, following rule~2
  1122. above, you begin the ruled table with |\ruledtable| and end it with
  1123. |\endruledtable| instead of enclosing the whole body of the table in
  1124. curly brackets).
  1125.  
  1126. \item{4)}
  1127. Macro names will be short and simple but descriptive.
  1128. \index{macros!names} Almost all Plain \TeX\ macro names are in lower
  1129. case for ease of typing, so macros with names containing uppercase
  1130. letters can be immediately recognized as being a part of \TeXsis\
  1131. (instead of Plain \TeX).  As a general rule though we also try to use
  1132. lowercase for frequently used macro names for ease of typing.
  1133.  
  1134. \item{5)}
  1135. The source code defining the macros should be available to the users, so
  1136. that those who want to see how something is done can do so, and those who
  1137. want to make their own modifications can do so.  The macro definitions
  1138. should include sufficient comments that (usually) someone with only a
  1139. little bit of experience with \TeX\ can understand what is going on.
  1140. Also, macros which perform similar functions and work together should be
  1141. kept in a single file, but separate parts of the whole package should be
  1142. kept in separate files.  When possible these individual files should be
  1143. usable on their own with Plain \TeX.  For example, right now it's
  1144. possible to use just the double column macros of \TeXsis\ by saying
  1145. |\input TXSdcol.tex|, and the ruled table macros can be used in Plain
  1146. \TeX\ by saying |\input TXSruled.tex|.
  1147.  
  1148.  
  1149. %======================================================================*
  1150.  
  1151. \pagecheck{0.75\vsize}
  1152. \section{Getting Started                \label{sect.start}}
  1153.  
  1154.   Assuming that \TeXsis\ has been properly installed on your
  1155. computer, using \TeXsis\ is as simple as using Plain \TeX.  To
  1156. run \TeX\ with the \TeXsis\ format to process a manuscript file
  1157. called |myfile.tex| you simply give the command:
  1158. \index{running@{running \TeXsis}} 
  1159. \def\HeadText{Getting Started}
  1160. \TeXexample
  1161. texsis myfile 
  1162. |endTeXexample 
  1163. As usual, the output from \TeX\ is
  1164. put in the file |myfile.dvi|, which you may print on a laser
  1165. printer or other output device.
  1166.  
  1167.    Since \TeXsis\ is a superset of Plain \TeX, any file that you
  1168. process with Plain \TeX\ can be processed with \TeXsis, and you will
  1169. get the same results.  In particular, Plain \TeX\ defaults to 10~pt.\ 
  1170. type and single spacing between lines, and so does \TeXsis\ unless you
  1171. initialize its special features.  But since you are probably using
  1172. \TeXsis\ because of these special features, you should begin your
  1173. manuscript file with the initialization command
  1174. \TeXexample                                          
  1175. \texsis                                          
  1176. |endTeXexample 
  1177. \noindent
  1178. One of the things this command does is switch the output to 12~pt.\ 
  1179. type, double spaced, which generally looks better on a small laser
  1180. printer.  Commands that allow you to change the type size or line
  1181. spacing yourself are described in \SEC{fonts}.  More
  1182. specialized initialization commands may be used in place of (or
  1183. in addition to) the |\texsis| command when you are using a
  1184. pre-defined document layout.  These are described in
  1185. \SEC{fmts}.
  1186.                                                      
  1187.    Note also that just as in Plain \TeX\ there is a difference
  1188. between uppercase and lowercase letters in control word names.
  1189. Thus if you say \cs{TeXsis} instead of \cs{texsis} you won't
  1190. initialize any special features but you will print out
  1191. ``\TeXsis.''
  1192.  
  1193. %==================================================*
  1194.  
  1195. \subsection{The Master File}                          
  1196.                                                      
  1197.    An important and useful concept for typesetting a paper or any
  1198. moderately long document is that of the {\it Master File}.\index{master
  1199. file} The idea is to create one small file which initializes \TeXsis\
  1200. with \cs{texsis}, makes any special definitions or sets parameters, and
  1201. then reads in the actual text of the document in sections using the
  1202. |\input| command.  As a simple example consider a manuscript called
  1203. MUONS.  The master file is called |MUONS.tex|, and contains the
  1204. following:
  1205. \TeXexample 
  1206. \texsis                % initialize TeXsis
  1207. \input MyMacros        % read special macros for this paper
  1208. \input MUONSr          % read references for the paper
  1209. \input MUONS0          % read title page for the paper
  1210. \input MUONS1          % read first section of manuscript
  1211. \input MUONS2          % read second section of manuscript
  1212. \ListReferences        % print the reference list
  1213. \end
  1214. |endTeXexample
  1215. The file |MyMacros.tex| contains any special macro definitions used
  1216. in this paper.  (If there are none, leave this line out.)  The
  1217. file |MUONSr.tex| contains the references used in this paper,
  1218. beginning with |\referencelist| and ending with
  1219. |\endreferencelist|, as described in \SEC{refs}.  The
  1220. file |MUONS0.tex| contains the commands for producing the title
  1221. page of the paper, as described in \SEC{fmts}.  The
  1222. actual text of the manuscript is divided into two parts, which
  1223. are kept in the files |MUONS1.tex| and |MUONS2.tex|.  To process the
  1224. entire document one simply runs \TeXsis\ on the master file with
  1225. the command
  1226. \TeXexample
  1227. texsis MUONS
  1228. |endTeXexample
  1229. \noindent
  1230. If you are familiar with computer programming you may think of
  1231. the master file as the main program and the other files as
  1232. subroutines called by the main program.
  1233.  
  1234.    One of the great advantages of using a master file, aside from
  1235. keeping the manuscript organized, is that it lets you work on one
  1236. section of the paper at a time.  For example, suppose you want to
  1237. run off a draft of just the first section of the paper called MUONS
  1238. above.  You don't need to process the references, the title page,
  1239. or the second section of the paper.  Recall that the percent sign
  1240. (|%|) is the comment character in \TeX\ --- anything appearing on
  1241. a line after a |%| is ignored by \TeX.  Thus we simply edit the
  1242. master file and put a |%| in front of certain lines, like this:
  1243. \TeXexample 
  1244. \texsis                    % initialize TeXsis
  1245. \draft                     % optional draft mode
  1246. \input MyMacros            % read special macros for this paper
  1247. % \input MUONSr            % read references for the paper
  1248. % \input MUONS0            % read title page for the paper
  1249. \input MUONS1              % read first section of manuscript
  1250. % \input MUONS2            % read section section of manuscript
  1251. % \ListReferences          % print the references
  1252. \end        
  1253. |endTeXexample
  1254. Now when you run \TeXsis\ on this file only the first section of
  1255. the paper will be processed, but it will use the macros defined
  1256. in |MyMacros.tex|, as well as any other definitions that you might
  1257. add to the master file. Once the first section is error free you
  1258. can repeat the process on the second section of the paper,
  1259. without rerunning the first section. After both sections are
  1260. correct you can reinstate all lines in the master file and
  1261. process the whole document.
  1262.  
  1263. % >>> EOF TXSintro.doc <<<
  1264. $! =========== TXSletr.doc ============
  1265. $ copy sys$input TXSletr.doc
  1266. %% file: TXSletr.doc                             TeXsis version 2.15  
  1267. %  $Revision: 15.11 $  :  $Date: 92/07/27 22:42:51 $  :  $Author: paige $
  1268. %======================================================================*
  1269. %  TeXsis Manual - LETTERS AND MEMOS
  1270. % (C) Copyright 1989, 1992 by Eric Myers and Frank E. Paige
  1271. %======================================================================*
  1272. \ifx\undefined\bs \texsis\input TXSdocM.doc\draft\fi
  1273.  
  1274.  
  1275. \section{Letters, Memos and Referee Reports     \label{sect.letr}}
  1276.  
  1277.         The commands \CS{letter}, \cs{formletters}, \cs{memo} and
  1278. \cs{referee} initialize \TeXsis\ for producing letters or memos.
  1279. The letter formats follow closely the letter format given in Appendix~E
  1280. of \TeXbook.\index{letters}
  1281.  
  1282. \subsection{Letters}
  1283.  
  1284.         \CS{letter} is designed for typing basic business letters
  1285. on letterhead stationary.  It uses the following commands:
  1286. \description{~closing\qquad}\clump
  1287.  
  1288. \itm{\CS{letter}}
  1289. Initialize the letter format.
  1290.  
  1291. \itm{\CS{letterhead}\arg{xxxx}}
  1292. Print telephone extension \meta{xxxx} and current date. The default is
  1293. to position these for BNL letterhead stationary, but you can change it
  1294. in the |TXSsite.tex| file.
  1295.  
  1296. \itm{\CS{address}}
  1297. The name and address of the recipient should follow, in \cs{obeylines}
  1298. format. The first line is used as the name of the addressee in a running
  1299. headline for pages after the first.
  1300.  
  1301. \itm{\CS{body}}
  1302. Begins the body of the letter.  The next line should be the
  1303. salutation, ``|Dear|....''
  1304.  
  1305. \itm{\cs{text}}
  1306. A synonym for \CS{body}.
  1307.  
  1308. \itm{\CS{closing}}
  1309. Begins the closing, in \cs{obeylines} format. The first line following 
  1310. is the closing (e.g.  "Sincerely Yours,") and the second is the sender's
  1311. name.  When the letter is printed room is left for a signature.
  1312. Optional additional lines can be added after the name for the
  1313. sender's title, etc.
  1314.  
  1315. \itm{\CS{annotations}}
  1316. Optional annotations follow, in \cs{obeylines} format.
  1317.  
  1318. \itm{\CS{cc}}
  1319. Carbon copy. A "cc:" and the names following are printed,
  1320. properly aligned.
  1321.  
  1322. \itm{\CS{Encl}}
  1323. Enclosure.  This is like \CS{cc} but "Encl:" is printed
  1324. for a list of enclosures.
  1325.  
  1326. \itm{\CS{ps}}
  1327. Optional postscript follows.  This is not in \cs{obeylines} format.
  1328.  
  1329. \itm{\CS{endletter}\qquad}
  1330. Ends the letter.  You can say \cs{bye} instead.
  1331. \enddescription
  1332. |\letter| automatically sets up a running headline for all pages
  1333. after the first, containing the addressee's name from \cs{address},
  1334. the date, and the page number. If you wish, you can turn off this
  1335. running headline by saying \cs{nopagenumbers}.
  1336.  
  1337.         The use of these macros is illustrated by the following example:
  1338. \TeXexample
  1339. \letter
  1340. \letterhead{7734}
  1341. \address
  1342. Prof.~D. Knuth
  1343. Stanford University
  1344. Stanford, CA~94305
  1345. \body
  1346. Dear Prof.~Knuth:
  1347.  
  1348.      We enclose the documentation and source code for a \TeX\
  1349. macro package which we have developed for physics papers.
  1350.  
  1351. \closing
  1352. Sincerely yours,
  1353. Eric Myers
  1354. Frank E.~Paige
  1355. \ps This stuff is also available by anonymous ftp.
  1356. \endletter
  1357. |endTeXexample
  1358.  
  1359.    By default the closing material is indented about 3.5 inches. 
  1360. The actual amount is set by \CS{longindent}, which you can change.
  1361. You should put the change on the same line as the \CS{closing},
  1362. like so:\index{letters!adjusting size}
  1363. \TeXexample
  1364. \closing\longindent=0pt
  1365. Sincerely yours, 
  1366. Joe User 
  1367. |endTeXexample 
  1368. \noindent
  1369. This example puts the closing material flush with the left margin.  You
  1370. should not put \CS{longindent}|=0pt| on the line following, because
  1371. \CS{closing} uses that line as the closing salutation (like
  1372. ``Sincerely,'').
  1373.  
  1374.         If a letter is somewhat too short or too long to fit on a page,
  1375. its length can be adjusted indirectly by changing the width of the text.
  1376. To do this insert \CS{letterwidth}\arg{width} immediately after
  1377. \cs{letter} to set the width of the text. This also automatically
  1378. adjusts the margins and the placement of the telephone extension and the
  1379. date.
  1380.  
  1381.  
  1382. %======================================================================*
  1383. \subsection{Form Letters}
  1384.  
  1385.         The \CS{formletters} layout makes it simple to send
  1386. identical or similar letters to a list of people. 
  1387. \index{form letters}\index{letters|see{form letters}}
  1388. \index{mail merge|see{form letters}}
  1389. The body of the form letter is stored in one file using the standard
  1390. \TeXsis\ letter format, while the control commands and a list of
  1391. addresses are put in a second file. The body of the letter should begin
  1392. with \cs{body} and end with \cs{endletter}, and it can contain an
  1393. arbitrary number of control sequences defined for each recipient.  It
  1394. can make use of all the features of the letter format. For example it
  1395. might use
  1396. \TeXexample
  1397. \body
  1398. Dear \Whoever:
  1399.  
  1400. \if P\Job
  1401.      I wish to apply for a postdoctoral position 
  1402. \else\if F\Job
  1403.      I wish to apply for a faculty position 
  1404. \else
  1405.      I wish to apply for a postdoctoral or faculty position 
  1406. \fi\fi
  1407. at your institution.  Enclosed you will find my curriculum vitae,
  1408. a list of publications, and ...
  1409.  
  1410. \closing
  1411. Sincerely yours,
  1412. Joe Gradstudent
  1413. \Encl Publication list
  1414. Curriculum vita
  1415. \endletter               % don't say \bye here!
  1416. |endTeXexample
  1417. This example addresses the letter to |\Whoever|, and it uses the
  1418. first text if |\Job| is |P|, the second if |\Job| is |F|, and the
  1419. third otherwise.  Thus form letters are very flexible.
  1420.  
  1421.         The mailing list file initializes the form letter macros
  1422. and contains the list of addresses. \TeXsis\ should be run on
  1423. this file, not on the text of the letter!  For the example above
  1424. it would have the form:
  1425. \TeXexample
  1426. \formletters{\letterhead{7734}}{letterbody.tex} 
  1427.  
  1428. \BL     Prof.\ John Doe
  1429.         Department of Physics
  1430.         University of Nowhere
  1431.         Nowhere, OK 73019 USA 
  1432.         \V\Whoever{Professor Doe}
  1433.         \V\Job{F}\EL
  1434.  
  1435. \BL     Dr.\ Buckaroo Banzai
  1436.         Physics Department
  1437.         The Banzai Institute
  1438.         Grovers Mill, NJ 08544
  1439.         \V\Whoever{Dr.\ Banzai}
  1440.         \V\Job{P}\EL
  1441.  
  1442. \BL     ...
  1443.         ... \EL
  1444. \endform
  1445. \bye
  1446. |endTeXexample 
  1447. \noindent
  1448.  
  1449. The first argument of \cs{formletters} is something like the usual
  1450. \cs{letterhead} macro, with your phone number.  Depending on your
  1451. letterhead this might have multiple parameters or might even be
  1452. several control sequences (all enclosed in a set of curly braces, of
  1453. course). 
  1454. The second argument to \cs{formletters} is the name of the file
  1455. containing the body of the letter.  The idea is that the stuff in the
  1456. first argument gets put into the letter {\it before} the address, while
  1457. the body of the letter (read from the file) is what goes after the
  1458. address.
  1459. Each letter begins with \CS{BL} ("Begin Letter") and has the name of the
  1460. addressee on the same line and the address on the following lines.  Any
  1461. ``Variables'' used in the letter can be defined using \cs{V}, which is
  1462. just an abbreviation for \cs{gdef}.  If necessary, variables can also be
  1463. defined before the \CS{BL}. Each address in the mailing list is ended by
  1464. \CS{EL} ("End Letter").  When the \CS{EL} is executed it reads in the
  1465. file containing the text for the letter and actually produces the letter.
  1466.  
  1467.         Any address in the list can be ignored simply by replacing the
  1468. \CS{BL} with \CS{IL} ("Ignore Letter").  In particular, this can be done
  1469. by a simple global edit after each batch of letters is made, and the
  1470. same file can then be used to send a second mailing by changing \CS{IL}
  1471. back to \CS{BL} for a select subset of addresses.
  1472.  
  1473. \bigskip
  1474. \nosechead{Mailing Labels}
  1475.  
  1476.         The same address file can be used to produce mailing labels
  1477. instead of letters by replacing |\formletters{...}{...}| with
  1478. \cs{formlabels}.  It is assumed that there are three columns of names and
  1479. addresses to fit on standard photocopy machine mailing labels. With the
  1480. default parameters nine labels each 1~in.\ high are printed per column
  1481. with the top and bottom rows left blank. This can be changed, and the
  1482. alignment of the labels can be adjusted, by setting appropriate values
  1483. for the following dimensions:
  1484. \TeXexample
  1485. \fullHsize=8.500in    % hsize for label page
  1486. \fullVsize=9.999in    % vsize for label page
  1487. \lblHsize=2.833in     % width of standard label
  1488. \lblVsize=1.000in     % height of standard label
  1489. \lblVoffset=0.100in   % vertical starting position
  1490. \lblHoffset=-0.500in  % horizontal starting position
  1491. |endTeXexample
  1492. Choosing appropriate values may require some experimentation with your
  1493. printer and labels. When the correct values are found, they can be
  1494. set in the file |TXSsite.tex| before compiling the format (see Appendix~A).
  1495.  
  1496.  
  1497. \pagecheck{0.5\vsize}
  1498.  
  1499.  
  1500. %======================================================================*
  1501.  
  1502. \subsection{Memos}
  1503.  
  1504.         \CS{memo} sets up a special format for memoranda, including a
  1505. header at the top of the page with the name of your organization and the
  1506. word "MEMORANDUM". The organization name defaults to ``\ORGANIZATION''
  1507. at this installation but this can be changed by\index{memos}
  1508. \example
  1509. |\def|\cs{ORGANIZATION}\arg{name}
  1510. \endexample
  1511. (This can be done once in the file |TXSsite.tex| before compiling
  1512. \TeXsis, as described in Appendix~\use{install},\index{memos!customization}
  1513.  or you can explicitly
  1514. put the name of your organization in your file.)  The commands for the
  1515. memo format are:
  1516. \description{Xendmemo\quad}\clump
  1517. %
  1518. \itm{\CS{memo}}
  1519. Initialize \TeXsis\ for memo format.
  1520. %
  1521. \itm{\CS{Date}}
  1522. Prints the word "{\twelvess Date:}" and the date, which must be on the
  1523. same line. If no date is given, then the current date is used.  If you'd
  1524. rather have the date in the upper right hand corner, as in a letter, use
  1525. |\letterdate| instead of \CS{Date}.
  1526. %
  1527. \itm{\CS{To}}
  1528. Prints the word "{\twelvess To:}" and the name(s) which follow.
  1529. %
  1530. \itm{\CS{From}}
  1531. Prints the word "{\twelvess From:}" and the name(s) which follow
  1532. %.
  1533. \itm{\CS{Subj}}
  1534. Prints the word "{\twelvess Subject:}" and the subject which
  1535. follows.  The subject may be several lines long. The first line
  1536. of the subject field is used in a running headline at the top of
  1537. all pages following the first.
  1538. %
  1539. \itm{\CS{n}}
  1540. New line for |\To|, |\From|, or |\Subj|.
  1541. %
  1542. \itm{\CS{nopagenumbers}}
  1543. Turns off the running subject headlines and the page numbers.
  1544. This must be typed after |\memo| since it is redefined by the
  1545. memo format.
  1546. %
  1547. \itm{\CS{Text}}
  1548. Begins the text of the memo.  You can also say \cs{body}.
  1549. %
  1550. \itm{\CS{annotations}\qquad}
  1551. Optional annotations follow, in \cs{obeylines} format.
  1552. %
  1553. \itm{\CS{cc}}
  1554. Carbon copy. A "cc:" and the names following it are printed,
  1555. properly aligned in \cs{obeylines} format.
  1556. %
  1557. \itm{\CS{Distribution}\qquad}
  1558. This is like \CS{cc} but prints "Distribution:" instead.
  1559. %
  1560. \itm{\CS{Encl}}
  1561. This is like \CS{cc} but prints "Encl:" instead, as for letters.
  1562. %
  1563. \itm{\CS{ps}}
  1564. Optional postscript follows.  This is not in \cs{obeylines} format.
  1565. %
  1566. \itm{\CS{endmemo}}
  1567. Ends the memo.  You can say \cs{bye} instead.
  1568. \enddescription
  1569.  
  1570.   All of these commands with mixed case names have synonyms which are
  1571. the same name but in all lower case letters.  The use of the \cs{memo}
  1572. format is illustrated by the following example:
  1573. \TeXexample
  1574. \memo
  1575. \Date
  1576. \To   \TeXsis\ Users
  1577. \From E. Myers, F.E. Paige
  1578. \Subj \TeXsis\ 2.15
  1579. \text
  1580.         \TeXsis\ 2.15 is now available. The new version adds
  1581. several features and corrects various bugs. Documentation is
  1582. also available.
  1583. \Distribution 
  1584. A. Blake
  1585. I. Harrity
  1586. B. Nichols
  1587. ...
  1588. \endmemo
  1589. |endTeXexample
  1590. \relax
  1591.  
  1592.  
  1593. %======================================================================*
  1594. \subsection{Referee Reports}
  1595.  
  1596.        \CS{referee} sets up a document format very much like the
  1597. \cs{memo} format, although there are some important differences.
  1598. \index{referee reports}
  1599. Referee reports are supposed to be confidential, so instead of
  1600. printing the name of your organization at the top of the first
  1601. page it puts the words ``Referee Report.''   In the
  1602. \CS{referee} format you can use the same commands that are used in
  1603. the \cs{memo} format, such as |\To| and |\Date|, but if you use
  1604. \cs{From} a warning message will be printed on your screen.  (This
  1605. is only a warning, it still does what it has been asked to do!)
  1606.  
  1607.        There are also some additional commands for the referee
  1608. report format:
  1609. \description{~authors\qquad}\clump
  1610. %
  1611. \itm{\cs{title}}
  1612. The title of the paper being reviewed should follow this on the
  1613. same line.  This is similar to |\Subj| in the memo format.
  1614. %
  1615. \itm{\cs{author}}
  1616. Prints ``{\twelvess AUTHOR:}'' and the name that follows on the
  1617. same line.
  1618. %
  1619. \itm{\cs{authors}}
  1620. Same as \cs{author} for a paper with more than one author.
  1621. %
  1622. \itm{\CS{MSref}}
  1623. Prints ``{\twelvess MANUSCRIPT:}'' and the manuscript reference number
  1624. which follows.
  1625. \enddescription
  1626.  
  1627.        The text of the report should begin with \cs{text} or
  1628. \cs{body}, just as for a memo, and the whole document should end
  1629. with |\endmemo| or \cs{bye}.  An example of the referee report
  1630. format is given by the following:
  1631. \TeXexample
  1632. \referee
  1633. \date    1 April 1992
  1634. \title   \TeXsis\ -- \TeX\ Macros for Physicists
  1635. \authors E.~Myers and F.E.~Paige
  1636. \MSref   LP-3105
  1637. \text
  1638. This is pretty good, but it's too long
  1639. for Physical Review Letters.
  1640. \bye
  1641. |endTeXexample
  1642. This produces a report which looks something like:
  1643. \bigskip
  1644. \begingroup
  1645. \line{\hfil
  1646. \tightboxit{\hbox{\vbox to 13cm{\leftskip=1cm
  1647. \referee\tenpoint\hsize=10cm\rightskip=1cm
  1648. \centerline{{\twelvepoint\bf Referee Report}}
  1649. \bigskip
  1650. \memoitem{DATE:}    1 April 1992
  1651. \memoitem{TITLE:}   \TeXsis\ -- \TeX\ Macros for Physicists
  1652. \memoitem{AUTHORS:} E.~Myers and F.E.~Paige
  1653. \memoitem{MANUSCRIPT:}   LP-3105
  1654. \text
  1655. This is pretty good, but it's too long
  1656. for Physical Review Letters.
  1657. \vfill}}}
  1658. \hfil}
  1659. \endgroup
  1660.  
  1661. \vfill
  1662.  
  1663. %>>> EOF TXSletr.doc <<<
  1664.  
  1665.  
  1666.  
  1667.  
  1668. $! =========== TXSmemo.tex ============
  1669. $ copy sys$input TXSmemo.tex
  1670. % file: TXSmemo.tex                              TeXsis version 2.15
  1671. % $Revision: 15.1 $  :  $Date: 92/05/31 21:30:08 $  :  $Author: myers $
  1672. %======================================================================*
  1673. %  This is a set of TeX macros for producing simple memos.
  1674. %  The sytnax is:
  1675. %
  1676. %       \MemoFormat     (or simply \memo in TeXsis)
  1677. %       \to <name>
  1678. %       \from <name>
  1679. %       \subj <whatever the memo is about> or \re is same as \subj
  1680. %       \date <date of memo>
  1681. %       \text
  1682. %          <text of memo>
  1683. %       \bye
  1684. %
  1685. %----------------------------------------------------------------------*
  1686. \message{Memo Format.}
  1687.  
  1688. % ---------- Counters and such:
  1689.  
  1690. \newdimen\memoindent    \memoindent=2.54cm      % indent for \to, \from, etc.
  1691. \newdimen\firstheadoffset       % \headlineoffset for first page only
  1692. \firstheadoffset=0pt            % start with headline down for \ORGANIZATION
  1693.  
  1694. % ---------- Initialization: Memo document format for memoranda
  1695.  
  1696. \def\Memo{\ContentsSwitchfalse%         % no table of contents
  1697.    \refswitchfalse                      % no reference list
  1698.    \inittexsis                          % initialize TeXsis
  1699.    \MemoFormat}%                        % Setup using \MemoFormat
  1700. \def\memo{\Memo}                        % synonym
  1701.  
  1702. \def\MemoFormat{%
  1703.     \voffset=0.125truein                % top margin
  1704.     \hsize=6.5truein                    % width of text
  1705.     \raggedbottom                       %
  1706.     \advance \vsize by -\voffset        % subtract \voffset from vertical size
  1707.     \nopagenumbers                      % no footlines
  1708.     \let\makeheadline=\makememhed       % alternate way of making
  1709.     \headline={\MemoHeadline}%          %   headlines for memos
  1710.     \RunningHeadstrue                   % default 
  1711.     \headlineoffset=0.8cm               % raise all following headlines
  1712.     \firstheadoffset=0pt                % start with headline down for
  1713.     \def\subjectline{}%                 % start with this null
  1714.     \def\nopagenumbers{\RunningHeadsfalse}% redefine \nopagenumbers 
  1715.     \def\pagenumbers{\RunningHeadstrue}%%  and \pagenumbers for this document
  1716.     \twelvepoint                        % default is 12pt
  1717.     \quoteon                            % enable easy quotes
  1718.     \def\annotations{\annotatememo}%    % annotations for memo
  1719.     \def\cc{\ccmemo}%                   % carbon copy for memo
  1720.     \def\Encl{\enclmemo}%               % enclosure for memo
  1721.     \def\ps{\psmemo}%                   % post script for memo
  1722.     \def\endmode{\relax}%               % for first item
  1723.     \def\to{\ifmmode\rightarrow\else\To\fi}%
  1724.     \let\text=\memotext                 % enable \text
  1725.     \let\Text=\memotext                 % \Text is a synonym
  1726.     \let\body=\memotext                 % \body is synonym for \text
  1727.     \memoheader                         % do headher at top
  1728. }
  1729.  
  1730.  
  1731. %     \ORGANIZATION names your institution.  Replace it with whatever you
  1732. % want for your own institution.
  1733.  
  1734. \def\ORGANIZATION{\hbox{\space}}        % change this in TXSsite.tex!
  1735.  
  1736. %     \memoheader prints the word MEMORANDUM at the top of the page and
  1737. % sets up for \to, \from, etc...
  1738.  
  1739. \def\memoheader{%                       % banner for top of first page
  1740.     \pageno=1                           % begin on page 1
  1741.     \centerline{\fourteenpoint          % 14 pt type centered
  1742.        M E M O R A N D U M}%            %
  1743.     \bigskip\bigskip                    % space
  1744.     \relax}%                            %
  1745.  
  1746. %---------------------------------------
  1747. % new def of \makeheadline for MEMOFORMAT, uses \firstheadoffset
  1748.  
  1749. \def\makememhed{\vbox to 0pt{\vskip-22.5pt
  1750.    \ifnum\pageno>1\vskip-\headlineoffset
  1751.       \else\vskip-\firstheadoffset\fi
  1752.    \line{\vbox to 8.5pt{}\the\headline}\vss}\nointerlineskip}%
  1753.  
  1754. % \MemoHeadline prints the subject and page number at the top of each page
  1755.  
  1756. \def\MemoHeadline{%     headline for Memoranda
  1757.    \ifnum\pageno>1                      % if not first page...
  1758.      \ifRunningHeads                    % running headlines on top of page?
  1759.        {\tenrm\subjectline\hfil Page~\folio}% % print subject line and page #
  1760.      \else                              % no running headlines?  
  1761.        {\hfil}%                         % then nothing  
  1762.      \fi
  1763.    \else                                % On the first page do header
  1764.       {\hfil\twelvess\ORGANIZATION\hfil}% print name of organization
  1765.    \fi}%
  1766.  
  1767. %-----------------------------------------------------------------------
  1768. % \memoitem is the basic template for each field
  1769.  
  1770. \def\memoitem#1{\endmode                % end previous field
  1771.     \def\endmode{\par\endgroup}%        % set up to end the field
  1772.     \begingroup                         % begin a new field
  1773.     \parskip=0pt                        % no \parskip
  1774.     \singlespaced                       % no big space if several lines
  1775.     \medskip\noindent                   % skip down a bit
  1776.     \hangindent=\memoindent             % hanging indentation
  1777.     \hangafter=1                        % after first line
  1778.     \hbox to \memoindent{{\tenss #1}\hfil}% label the field
  1779.     \nobreak}%                          % don't break after label
  1780.  
  1781. \def\endmode{\relax}                    % for first item
  1782.  
  1783. %---------------------------------------
  1784. % TO: and FROM:
  1785.  
  1786. \def\To{\memoitem{TO:}}
  1787. \def\TO:{\To}
  1788. \def\From{\memoitem{FROM:}}
  1789. \def\FROM:{\From}
  1790. \def\from{\From}
  1791.  
  1792. %---------------------------------------
  1793. % CC: (Carbon Copies)
  1794.  
  1795. \def\ccmemo{\endmode
  1796.     \def\endmode{\vskip0pt\endgroup}%
  1797.     \bigskip                            % skip down a bit
  1798.     \begingroup\obeylines               % obey line ends
  1799.     \parskip=0pt                        % no skip between items
  1800.     \ccitem{cc:\ }%
  1801.     }
  1802. \def\CC{\cc}
  1803.  
  1804. % ---------- \ccitem does the work for \cc and other end of memo fields
  1805.  
  1806. \def\ccitem#1{\setbox0\hbox{#1\quad}%   % box0 = argument
  1807.     \parindent=\wd0                     % get its width
  1808.     \hang                               % hanging indentation
  1809.     \rlap{\copy0}%                      % and write it
  1810.     \vskip-\baselineskip\relax}%        % kill the skip
  1811.  
  1812. % ---------- \Distribution is like CC (\obeyines format)
  1813.  
  1814. \def\distribution{\endmode
  1815.     \def\endmode{\vskip0pt\endgroup}%
  1816.     \bigskip                            %
  1817.     \begingroup\obeylines               % obey line ends
  1818.     \def\n{\par}%                       % break lines at \n
  1819.     \parskip=0pt                        %
  1820.     \ccitem{Distribution:}%
  1821.     }
  1822. \def\Distribution{\distribution}%        % synonym
  1823.  
  1824. % ---------- \enclmemo is also like \cc (obeylines format)
  1825.  
  1826. \def\enclmemo{\endmode                  %
  1827.     \def\endmode{\vskip0pt\endgroup}%   %
  1828.     \bigskip                            % skip down a bit
  1829.     \begingroup\obeylines               % obey line ends
  1830.     \parskip=0pt                        % no skip between items
  1831.     \ccitem{Encl:\ }%
  1832.     }
  1833.  
  1834. % ---------- \annotatememo is \annotations for memo format
  1835.  
  1836. \def\annotatememo{\endmode              % end previous item
  1837.    \def\endmode{\vskip0pt\endgroup}%    % set up new ending
  1838.    \begingroup                          % changes local
  1839.       \nobreak\bigskip\nobreak          % skip some
  1840.       \parindent=0pt\parskip=0pt        % no indent or skip
  1841.       \obeylines}%                      % obey line endings
  1842.  
  1843. % ---------- \psmemo does \ps for a memo
  1844.  
  1845. \def\psmemo{\endmode                    % end previous item
  1846.    \def\endmode{\vskip0pt\endgroup}%    % set up ending
  1847.    \begingroup                          % start a group
  1848.       \nobreak\bigskip\nobreak          % skip some
  1849.       \interlinepenalty 5000            % avoid breaks
  1850.       \def\par{\endgraf\penalty 5000}}% % avoid breaks
  1851.  
  1852. %---------------------------------------
  1853. % SUBJECT: and RE: (saves first line in \subjectline for tops of pages)
  1854.  
  1855. \def\subjectitem#1{\endmode     % close previous field
  1856.     \def\endmode{\relax}%       % turn off \endmode before going to \memoitem
  1857.     \gdef\@subjtype{#1}%        % label the field
  1858.     \begingroup\obeylines       % obeylines is on to get first subject line
  1859.     \getsubject}%               % get first line
  1860. \def\Subj{\subjectitem{SUBJECT:}}%
  1861. \def\SUBJ{\subjectitem{SUBJECT:}}%
  1862. \def\subj{\subjectitem{SUBJECT:}}%
  1863. \def\subject{\subjectitem{SUBJECT:}}%
  1864. \def\Subject{\subjectitem{SUBJECT:}}%
  1865.  
  1866. \def\re{\subjectitem{RE:}}%
  1867. \def\RE{\subjectitem{RE:}}%
  1868.  
  1869. % \getsubject gets the first line in the field in \subjectline
  1870. % for use in the headline at the top of pages following
  1871.  
  1872. {\obeylines                             % first line of subject is \subjectline
  1873.  \gdef\getsubject#1
  1874. {\endgroup                              % end \obeylines
  1875.  \gdef\subjectline{#1}                  % define \subjectline as the first line
  1876.  \memoitem{\@subjtype}\subjectline\space}% print SUBJECT: line
  1877. }% close obeylines
  1878.  
  1879. %---------------------------------------
  1880. % \date takes what follows on the same line and uses it as the
  1881. % date of the memo.  If nothing follows then today's date is used.
  1882. % It is important for the date, if given, to be on the same line as \date.
  1883.  
  1884. \def\Date{\endmode              % close previous field
  1885.    \def\endmode{\relax}%        % turn off \endmode before going to \memoitem
  1886.    \begingroup\obeylines        %
  1887.    \getdate}                    % get the date, or use today's
  1888.  
  1889. \def\DATE{\Date}                % synonym
  1890. \def\date{\Date}
  1891.  
  1892. {\obeylines                     % look for a given date
  1893.  \gdef\getdate#1
  1894. {\endgroup                      % close \obeylines
  1895.  \ifx?#1?\relax                 % if no date given, use today's
  1896.   \gdef\memodate{\number\day\ \monthname{\month}\ \number\year}%
  1897.  \else                          %
  1898.   \gdef\memodate{#1}            % if date is given, use it
  1899.  \fi                            %
  1900.  \memoitem{DATE:}\memodate}%    %
  1901. }% close \obeylines for definitions
  1902.  
  1903. \def\monthname#1{\ifcase #1 \errmessage{0 is not a month.}
  1904.     \or January\or February\or March\or April\or May\or
  1905.      June\or July\or August\or September\or October\or
  1906.      November\or December%
  1907.      \else \errmessage{#1 is not a month.}\fi}
  1908.  
  1909. %---------------------------------------
  1910. % TEXT: \text sets up for text of memo
  1911.  
  1912. \def\memotext{\endmode                  % close last item
  1913.    \def\endmode{\bigskip\vfil}%         % \endmode is now blank space
  1914.    \bigskip\bigskip                     % skip down for text
  1915.    \parskip=\normalbaselineskip         % \parskip is one blank line
  1916.    \noindent                            % like a letter
  1917.    }
  1918. \def\text{\memotext}                    % start with \text = \memotext
  1919. \def\Text{\memotext}                    % \Text is a synonym
  1920.  
  1921. % use \endmemo to end a memo, especially if you use \CC or similar.
  1922.  
  1923. \def\endmemo{\endmode\vfill\eject\end}  % ends CC: etc, then quits
  1924.  
  1925. %=======================================================================
  1926. % Referee format for Referee Reports
  1927. %
  1928. \def\Referee{\ContentsSwitchfalse               % no table of contents
  1929.    \auxswitchfalse                              % no need for an .AUX file
  1930.    \refswitchfalse                              % no reference list
  1931.    \inittexsis                                  % initialize
  1932.    \RefReptFormat}                              % Setup using \MemoFormat
  1933. \def\referee{\Referee}%                         % synonym
  1934.  
  1935. \def\RefReptFormat{%
  1936.     \voffset = 0.125 true in            % top margin
  1937.     \hsize   = 6.5 true in              % width of text
  1938.     \raggedbottom                       %
  1939.     \advance \vsize by -\voffset        % subtract \voffset from vertical size
  1940.     \nopagenumbers                      % no footlines
  1941.     \headlineoffset=0.8cm               % raise all following headlines
  1942.     \firstheadoffset=0pt                % start with headline down for
  1943.     \let\makeheadline=\makememhed       %
  1944.     \def\ORGANIZATION{{\fourteenpoint\bf Referee Report}}% change \ORGANIZATION
  1945.     \def\subjectline{Referee Report}%   % running head is ``Referee Report''
  1946.     \headline={\MemoHeadline}%          % just like a memo
  1947.     \def\nopagenumbers{\RunningHeadsfalse}% redefine \nopagenumbers 
  1948.     \def\pagenumbers{\RunningHeadstrue}%%  and \pagenumbers for this document
  1949.     \twelvepoint                        % default is 12pt
  1950.     \singlespaced\whitespaced           % widely spaced, but not double
  1951.     \parskip=\baselineskip              % extra space between paragraphs
  1952.     \def\endmode{\relax}%               % for first item
  1953.     \quoteon                            % enable easy quotes
  1954.     \def\to{\ifmmode\rightarrow\else\To\fi}%
  1955.     \def\From{\RefFrom}%                % say something about \From
  1956.     \let\text=\memotext                 %
  1957.     \let\body=\memotext                 %
  1958.     \def\authors{\memoitem{AUTHORS:}}%
  1959.     \def\author{\memoitem{AUTHOR:}}%
  1960.     \def\title{\subjectitem{TITLE:}}%
  1961.     \def\MSref{\memoitem{MANUSCRIPT:}}%
  1962.     \def\manuscript{\@obsolete\manuscript\MSref\memoitem{MANUSCRIPT:}}%
  1963.     \def\Number{\memoitem{NUMBER:}}%
  1964.     \hbox{\space}\bigskip}              % space down from top a bit.
  1965.  
  1966. \def\RefFrom{\begingroup\obeylines      % obeylines to get first subject line
  1967.     \getFrom}%                          % get first line
  1968. {\obeylines                             % look for line endings
  1969.  \gdef\getFrom#1
  1970. {\endgroup                              % end \obeylines
  1971.  \emsg{> Reminder: Referee Reports are usually anonymous.  This one says...}%
  1972.  \emsg{FROM: #1}%                       % say something about FROM
  1973.  \memoitem{From:}#1\space}%             % but do it anyway
  1974. }                                       % close obeylines
  1975.  
  1976. %>>> EOF TXSmemo.tex <<<
  1977.